﻿@using CodeCamp.Models.Shared
@model SharedViewModel

            <div id="menu-wrapper">
                @{
                    var values = new RouteValueDictionary();
                    if (@Model != null)
                    {
                        values["eventName"] = @Model.EventShortName;
                    }
                    IDictionary<string, object> attributes = new Dictionary<string, object>();
                }
                <ul id="menu">
                    <li class="menu-home">@Html.ActionLink("Home", "Index", "Home", @values, @attributes)</li>
                    <li>@Html.ActionLink("Sessions", "List", "Sessions", @values, @attributes)
                    @if ((Model != null) && Model.ScheduleInsider)
                    {
                        <ul>
                        <li>@Html.ActionLink("Unscheduled Sessions", "UnscheduledSessions", "Sessions", new { eventName=Model.EventShortName}, null)</li>
                        </ul>
                    }
                    </li>
                    @if ((Model != null) && (Model.AgendaIsPublic || Model.ScheduleInsider))
                    {
                    <li>@Html.ActionLink("Agenda", "Agenda", "Schedule", @values, @attributes)</li>
                    }

                    @if ((Model != null) && (Model.ScheduleIsPublic || Model.ScheduleInsider || Model.ScheduleVisibleForPresenter))
                    {
                    <li>@Html.ActionLink("Schedule", "Index", "Schedule", @values, @attributes)
                        @if (Model.ScheduleIsPublic || Model.ScheduleInsider || Model.ScheduleVisibleForPresenter)
                        {
                        <ul>
                            <li>@Html.ActionLink("Agenda", "Agenda", "Schedule", @values, @attributes)</li>
                            <li>@Html.ActionLink("Session Schedule", "Index", "Schedule", @values, @attributes)</li>
                            <li>@Html.ActionLink("Session Schedule by Room", "Rooms", "Schedule", @values, @attributes)</li>
                            <li>@Html.ActionLink("Session Grid", "SessionGrid", "Schedule", @values, @attributes)</li>
                          @if (Model.ScheduleInsider)
                          {
                            <li>- - -</li>  
                            <li>@Html.ActionLink("Buildings & Rooms", "Buildings", "Schedule", @values, @attributes)</li>
                            <li>@Html.ActionLink("Timeslots", "Timeslots", "Schedule", @values, @attributes)</li>
                            if (User.IsInRole(CCRoles.RoleNames.BigCheeze))
                            {
                            <li>- - -</li>  
                            <li>@Html.ActionLink("Edit Schedule", "EditSchedule", "Schedule", @values, @attributes)</li>
                            }
                          }
                        </ul>
                        }
                    </li>
                    }
                    <li>@Html.ActionLink("Presenters", "List", "Presenters", @values, @attributes)</li>
                    <li>@Html.ActionLink("Sponsors", "List", "Sponsors", @values, @attributes)</li>
                    <li>@Html.ActionLink("Volunteers", "Index", "Volunteers", @values, @attributes)</li>
                    @if ((Model != null) && (Model.DefaultEventShortName == Model.EventShortName))
                    {
                    <li><a href="https://twitter.com/search?q=%23boscc&src=hash" target="_blank">#boscc</a></li>
                    }
                    @if (User.IsInRole(CCRoles.RoleNames.BigCheeze))
                    {
                        <li>@Html.ActionLink("Mgmt", "Index", "EventMgmt", @values, @attributes)
                            <ul>
                                <li>@Html.ActionLink("EMail", "Index", "Email", @values, @attributes)</li>
                                <li>@Html.ActionLink("Presenters", "Presenters", "EventMgmt", @values, @attributes)</li>
                                <li>@Html.ActionLink("Site Users", "SiteUsers", "EventMgmt", @values, @attributes)</li>
                                @if ((Model != null) && !Model.AuthUsesWIF)
                                {
                                <li>@Html.ActionLink("Users", "Users", "EventMgmt", @values, @attributes)</li>
                                }
                                <li>@Html.ActionLink("Sponsors", "SponsorsList", "EventMgmt", @values, @attributes)</li>
                            </ul>
                        </li>
                    }
                    <li>@Html.ActionLink("About", "About", "Home", @values, @attributes)
                        <ul>
                            <li>@Html.ActionLink("About Code Camp", "About", "Home", @values, @attributes)</li>
                            @if ((Model != null) && Model.ShowAboutDirections)
                            {
                                <li>@Html.ActionLink("Directions", "Directions", "Home", @values, @attributes)</li>
                            }
                            <li>@Html.ActionLink("Other Boston Code Camps", "OtherCCEvents", "Home", @values, @attributes)</li>
                            <li>@Html.ActionLink("Questions? - Contact Us", "Contact", "Home", @values, @attributes)</li>
                        </ul>
                    </li>
                </ul>
            </div> @* menu-wrapper (end) *@
